home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
pctext2c.arc
/
WORKDISK.BAT
< prev
Wrap
DOS Batch File
|
1987-07-30
|
13KB
|
355 lines
echo off
:START
cls
slash /d
echo ┌───────────────────────────────────────────────────────────────────────┐
echo │ PC-Text Analysis ToolBox WORKDISK MAKER 1.0 (C) 1987 R. A. Wobbe │
echo │ Follow directions to make workdisks of PC-TEXT │
echo └───────────────────────────────────────────────────────────────────────┘
echo Select an option from below :
slash /l
echo ┌─────┐
echo │ F 1 │ De-archive (decompress) and copy the PC-TEXT manual and
echo └─────┘ other documents to a formatted disk in drive A.
echo ┌─────┐
echo │ F 2 │ De-archive (decompress) and install the remaining PC-TEXT
echo └─────┘ files to make a working text analysis disk in drive A.
echo ┌─────┐
echo │ F 3 │ Create a hard disk directory (called C:\PCTEXT) and install
echo └─────┘ all files in that directory.
slash /l
echo ┌─────┐
echo │ Esc │ Exit.
echo └─────┘
funky /bld Press the function key of your choice
if not errorlevel 1 goto EXIT
if errorlevel 255 goto START
if errorlevel 62 goto START
if errorlevel 61 goto HDD
if errorlevel 60 goto FILES
if errorlevel 59 goto DOC
goto START
:DOC
cls
slash /lldl
echo Your PC-TEXT distribution disk should now be on Drive B.
echo and a blank, formatted disk (if your PC is not an AT, make sure no
echo system on disk) in Drive A.
slash /llld
query All ready to go? ( Y/N "Esc" exits)
if errorlevel 2 goto EXIT
if not errorlevel 1 goto FIX1
cls
pause
slash /llll
echo NOW REMOVING FILE FROM ARCHIVE -- DO NOT DISTURB !
slash /ll
a:
b:pkxarc b:PCTEXT.arc -PCTEXT.MAN
b:pkxarc B:PCTEXT.ARC -CHOP11.DOC
b:pkxarc B:PCTEXT.ARC -FLEXTEX.DOC
b:pkxarc B:PCTEXT.ARC -FLEXTSHRT.DOC
b:pkxarc B:PCTEXT.ARC -LIST.DOC
b:pkxarc B:PCTEXT.ARC -QSORT.DOC
b:
cls
slash /lll
echo A copy of the PC-TEXT manual should now reside on the disk in drive A.
slash /l
echo Let's just check to see if we had a successful transfer
slash /ll
echo C H E C K I N G !
if not exist A:PCTEXT.MAN goto BOOBOO
if not exist A:CHOP11.DOC goto BOOBOO
if not exist A:FLEXTEX.DOC goto BOOBOO
if not exist A:FLEXSHRT.DOC goto BOOBOO
if not exist A:LIST.DOC goto BOOBOO
if not exist A:QSORT.DOC goto BOOBOO
slash /lll
echo Good! They're there. Now, if you're ready, we can go on to make
echo the disk you will be using the most, your working PC-TEXT disk.
slash /ll
pause
goto start
:FILES
cls
slash /lllldl
echo Place a disk which has been formatted using the "/S"
echo parameter (that is a disk containing the operating system and
echo COMMAND.COM) in drive A. If you do not know how this is done,
echo look in your DOS manual under the FORMAT /S command.
slash /ldll
query Ready to proceed ( Y/N "Esc" to exit)?
if errorlevel 2 goto EXIT
if not errorlevel 1 goto FIX2
echo NOW REMOVING FILES FROM ARCHIVE -- DO NOT DISTURB !
slash /ll
a:
b:pkxarc B:PCTEXT.ARC -PCTEXT.EXE
b:pkxarc B:PCTEXT.ARC -CHOP.EXE
b:pkxarc B:PCTEXT.ARC -QSORT.COM
b:pkxarc B:PCTEXT.ARC -COUNT.COM
b:pkxarc B:PCTEXT.ARC -FLEXTEX.COM
b:pkxarc B:PCTEXT.ARC -FREQER.COM
b:pkxarc B:PCTEXT.ARC -LIST.COM
b:pkxarc B:PCTEXT.ARC -SUBDIR.COM
b:pkxarc B:PCTEXT.ARC -TATHLP.COM
b:pkxarc B:PCTEXT.ARC -TPR.COM
b:pkxarc B:PCTEXT.ARC -TWC.COM
b:pkxarc B:PCTEXT.ARC -COLOR.BAT
b:pkxarc B:PCTEXT.ARC -MONO.BAT
b:pkxarc B:PCTEXT.ARC -SEARCH.BAT
b:pkxarc B:PCTEXT.ARC -*.HLP
b:pkxarc B:PCTEXT.ARC -*.TBL
b:pkxarc B:PCTEXT.ARC -HJAMES.TXT
b:
cls
slash /ll
echo A copy of all necessary PC-TEXT files should reside on the disk in drive A.
slash /l
echo Let's just check to see if they are all there.
slash /ll
echo C H E C K I N G !
if not exist A:PCTEXT.EXE goto BOOBOO2
if not exist A:CHOP.EXE goto BOOBOO2
if not exist A:QSORT.COM goto BOOBOO2
if not exist A:COUNT.COM goto BOOBOO2
if not exist A:FLEXTEX.COM goto BOOBOO2
if not exist A:FREQER.COM goto BOOBOO2
if not exist A:LIST.COM goto BOOBOO2
if not exist A:SUBDIR.COM goto BOOBOO2
if not exist A:TATHLP.COM goto BOOBOO2
if not exist A:TPR.COM goto BOOBOO2
if not exist A:TWC.COM goto BOOBOO2
if not exist A:COLOR.BAT goto BOOBOO2
if not exist A:MONO.BAT goto BOOBOO2
if not exist A:SEARCH.BAT goto BOOBOO2
if not exist A:ASCII.HLP goto BOOBOO2
if not exist A:COUNTER.HLP goto BOOBOO2
if not exist A:CHARFREQ.HLP goto BOOBOO2
if not exist A:DEFAULTD.HLP goto BOOBOO2
if not exist A:EDIT.HLP goto BOOBOO2
if not exist A:FILES.HLP goto BOOBOO2
if not exist A:FREQ.HLP goto BOOBOO2
if not exist A:GEN.HLP goto BOOBOO2
if not exist A:INDEX.HLP goto BOOBOO2
if not exist A:KEYWORD.HLP goto BOOBOO2
if not exist A:KWIC.HLP goto BOOBOO2
if not exist A:LINUM.HLP goto BOOBOO2
if not exist A:PRINT.HLP goto BOOBOO2
if not exist A:SEARCH.HLP goto BOOBOO2
if not exist A:VIEW.HLP goto BOOBOO2
if not exist A:WPERF.TBL goto BOOBOO2
if not exist A:KSIC.TBL goto BOOBOO2
if not exist A:KWIC.TBL goto BOOBOO2
if not exist A:C1.TBL goto BOOBOO2
if not exist A:C2.TBL goto BOOBOO2
if not exist A:UC.TBL goto BOOBOO2
if not exist A:LC.TBL goto BOOBOO2
if not exist A:HJAMES.TXT goto BOOBOO2
cls
slash /ll
echo Good! It looks like we managed to get all of PC-TAT's working
echo files copied to the disk in drive A. Remember, if you
echo haven't already done it, copy FIND.EXE from your DOS utility
echo disk to the working disk in drive A.
slash /lll
pause
goto START
:HDD
cls
slash /dl
echo PC-Text Analysis Toolbox -- HARD DRIVE INSTALLER
slash /dl
echo First of all, this routine assumes that you have a hard disk and
echo that it is designated as drive "C:" If your hard disk is designated
echo as "D:" or later, we're sorry, but you will have to EXIT this
echo program and load your disk the old fashioned way, by hand.
slash /l
echo Seriously, if the above suggests you might have a problem
echo installing PC-TEXT on your hard disk, go back to the READ.ME file
echo for an alternate method of installation.
slash /l
echo Now that that's clear, this program will create a sub-directory
echo called "PCTEXT" with its own sub-directory called "DOCS" on your
echo hard drive. All PC-TEXT files will then be installed in the
echo appropriate directory.
slash /ldll
query Ready to proceed ( Y/N "Esc" to exit)?
if errorlevel 2 goto EXIT
if not errorlevel 1 goto FIX3
c:\
md PCTEXT
cd PCTEXT
md DOCS
cd \PCTEXT
echo NOW REMOVING FILES FROM ARCHIVE -- DO NOT DISTURB !
a:slash /ll
a:pkxarc a:PCTEXT.ARC -PCTEXT.EXE
a:pkxarc a:PCTEXT.ARC -CHOP.EXE
a:pkxarc a:PCTEXT.ARC -QSORT.COM
a:pkxarc a:PCTEXT.ARC -COUNT.COM
a:pkxarc a:PCTEXT.ARC -FLEXTEX.COM
a:pkxarc a:PCTEXT.ARC -FREQER.COM
a:pkxarc a:PCTEXT.ARC -LIST.COM
a:pkxarc a:PCTEXT.ARC -SUBDIR.COM
a:pkxarc a:PCTEXT.ARC -TATHLP.COM
a:pkxarc a:PCTEXT.ARC -TPR.COM
a:pkxarc a:PCTEXT.ARC -TWC.COM
a:pkxarc a:PCTEXT.ARC -COLOR.BAT
a:pkxarc a:PCTEXT.ARC -MONO.BAT
a:pkxarc a:PCTEXT.ARC -SEARCH.BAT
a:pkxarc a:PCTEXT.ARC -*.HLP
a:pkxarc a:PCTEXT.ARC -*.TBL
a:pkxarc a:PCTEXT.ARC -HJAMES.TXT
cd \pctext\docs
a:pkxarc a:PCTEXT.ARC -PCTEXT.MAN
a:pkxarc a:PCTEXT.ARC -CHOP11.DOC
a:pkxarc a:PCTEXT.ARC -FLEXTEX.DOC
a:pkxarc a:PCTEXT.ARC -FLEXSHRT.DOC
a:pkxarc a:PCTEXT.ARC -LIST.DOC
a:pkxarc a:PCTEXT.ARC -QSORT.DOC
cd \
cls
a:
slash /ll
echo A copy of all necessary PC-TEXT files should reside on the hard disk
echo in a directory called "PCTEXT" and another called "DOCS."
slash /l
echo Let's just check to see if they are all there.
slash /ll
echo C H E C K I N G !
if not exist C:\PCTEXT\PCTEXT.EXE goto BOOBOO3
if not exist C:\PCTEXT\CHOP.EXE goto BOOBOO3
if not exist C:\PCTEXT\QSORT.COM goto BOOBOO3
if not exist C:\PCTEXT\COUNT.COM goto BOOBOO3
if not exist C:\PCTEXT\FLEXTEX.COM goto BOOBOO3
if not exist C:\PCTEXT\FREQER.COM goto BOOBOO3
if not exist C:\PCTEXT\LIST.COM goto BOOBOO3
if not exist C:\PCTEXT\SUBDIR.COM goto BOOBOO3
if not exist C:\PCTEXT\TATHLP.COM goto BOOBOO3
if not exist C:\PCTEXT\TPR.COM goto BOOBOO3
if not exist C:\PCTEXT\TWC.COM goto BOOBOO3
if not exist C:\PCTEXT\COLOR.BAT goto BOOBOO3
if not exist C:\PCTEXT\MONO.BAT goto BOOBOO3
if not exist C:\PCTEXT\SEARCH.BAT goto BOOBOO3
if not exist C:\PCTEXT\ASCII.HLP goto BOOBOO3
if not exist C:\PCTEXT\COUNTER.HLP goto BOOBOO3
if not exist C:\PCTEXT\CHARFREQ.HLP goto BOOBOO3
if not exist C:\PCTEXT\DEFAULTD.HLP goto BOOBOO3
if not exist C:\PCTEXT\EDIT.HLP goto BOOBOO3
if not exist C:\PCTEXT\FILES.HLP goto BOOBOO3
if not exist C:\PCTEXT\FREQ.HLP goto BOOBOO3
if not exist C:\PCTEXT\GEN.HLP goto BOOBOO3
if not exist C:\PCTEXT\INDEX.HLP goto BOOBOO3
if not exist C:\PCTEXT\KEYWORD.HLP goto BOOBOO3
if not exist C:\PCTEXT\KWIC.HLP goto BOOBOO3
if not exist C:\PCTEXT\LINUM.HLP goto BOOBOO3
if not exist C:\PCTEXT\PRINT.HLP goto BOOBOO3
if not exist C:\PCTEXT\SEARCH.HLP goto BOOBOO3
if not exist C:\PCTEXT\VIEW.HLP goto BOOBOO3
if not exist C:\PCTEXT\WPERF.TBL goto BOOBOO3
if not exist C:\PCTEXT\KSIC.TBL goto BOOBOO3
if not exist C:\PCTEXT\KWIC.TBL goto BOOBOO3
if not exist C:\PCTEXT\C1.TBL goto BOOBOO3
if not exist C:\PCTEXT\C2.TBL goto BOOBOO3
if not exist C:\PCTEXT\UC.TBL goto BOOBOO3
if not exist C:\PCTEXT\LC.TBL goto BOOBOO3
if not exist C:\PCTEXT\HJAMES.TXT goto BOOBOO3
if not exist C:\PCTEXT\DOCS\PCTEXT.MAN goto BOOBOO3
if not exist C:\PCTEXT\DOCS\CHOP11.DOC goto BOOBOO3
if not exist C:\PCTEXT\DOCS\FLEXTEX.DOC goto BOOBOO3
if not exist C:\PCTEXT\DOCS\FLEXSHRT.DOC goto BOOBOO3
if not exist C:\PCTEXT\DOCS\LIST.DOC goto BOOBOO3
if not exist C:\PCTEXT\DOCS\QSORT.DOC goto BOOBOO3
cls
slash /ll
echo Good! It looks like we managed to get all of PC-TEXT's working
echo files and documents copied to the PC-TEXT directories on the
echo hard disk. Remember, if you haven't already done it, copy
echo FIND.EXE from your DOS utility disk to the PCTEXT directory
echo on the hard disk.
slash /lll
pause
GOTO START
:BOOBOO
slash /llld
echo Whoops! Couldn't find PCTEXT.MAN on drive A.
echo One of us must have made a mistake.
slash /dll
echo Let's start over again. Check and follow the procedure carefully.
slash /ll
pause
goto START
:BOOBOO2
slash /llld
echo Whoops! Couldn't find necessary PC-TEXT files on drive A.
echo One of us must have made a mistake.
slash /dll
echo Let's start over again. Check and follow the procedure carefully.
slash /ll
pause
goto START
:BOOBOO3
slash /llld
echo Whoops! Couldn't find necessary PC-TEXT files on the hard drive.
echo One of us must have made a mistake.
slash /dll
echo Let's start over again. Check and follow the procedure carefully.
slash /ll
pause
goto START
:FIX1
cls
slash /ll
echo Be sure that this disk (distribution disk of PC-TEXT)
echo is in drive B, and that an empty, formatted disk is in drive A.
echo When you have corrected the situation, begin again by typing: WORKDISK
slash /ll
echo Thank you.
goto EXIT
:FIX2
cls
slash /ll
echo Be sure that this disk (distribution disk of PC-TEXT)
echo is in drive B, and that a formatted disk ALSO CONTAINING THE
echo OPERATING SYSTEM and COMMAND.COM is in drive A. If this last item
echo seems strange, check in your DOS manual under FORMAT /S.
slash /ll
echo When you have corrected the situation, begin again by typing: WORKDISK
slash /l
echo Thank you.
goto EXIT
:FIX3
cls
slash /ll
echo Be sure that this disk (distribution disk of PC-TEXT)
echo is in drive B, and that your Hard disk is designated drive C:
slash /ll
echo If you cannot correct this situation, go back to the READ.ME file
echo for an alternate method of installation.
slash /ll
echo If you can correct the situation, begin again by typing: WORKDISK
slash /l
echo Thank you.
goto EXIT
:EXIT
slash /lll